<?php
/**
 * 时间应用类
 * @author yulipu
 */
class MyDate {
	private static $instance;
	
	private function __construct() {
		
	}
	
	public static function getInstance() {
		if(! (self::$instance instanceof self) ) {    
        self::$instance = new self();    
    }  
    
    return self::$instance; 
	}
	
	public function getNowTimeString($pattern = 'Y-m-d H:i:s') {
		return date($pattern, time());	
	}
	
	public function getHost() {
			
	}
		
}